{{extend 'layout.html'}}

<h1>选择模板</h1>
<form method="post" enctype="multipart/form-data" action="/{{=APPLICATION}}/editer">
    <table>
    <tbody>
    <tr>
        <td>单选</td><td>标题</td>
    </tr>
    {{x = 0}}
    {{for i in templates:}}
        {{x += 1}}
        {{=TR(INPUT(_type='radio', _value=i['id'], _name='templateid', _id='templateid'+str(x)), LABEL(i['title'], _for='templateid'+str(x)))}}
    {{pass}}
    {{=TR("",INPUT(_type="submit",_value="下一步 (填充模板)", _style='padding: 2px 7px;'))}}
    </tbody>
    </table>
</form>
<br />
<br />
<br />
